package au.com.handsunited.service;

import au.com.handsunited.model.User;

/**
 * @author arunda
 * Date: 25/12/2006
 * Time: 10:40:16
 */
public interface SecurityService {

	/**
	 * Authenticates a user using the username and password
	 * @param username
	 * @param password
	 * @return the <code>User</code> object if the user has been authenticated successfully and
	 * 		   <code>null</code> otherwise
	 */
	public User login (String username, String password);


	/**
	 * 
	 * @param user
	 */
	public void logout (User user);

}
